package com.zhenghaijin.pojo;

import java.util.Date;

public class PlaybackHistoryPOJO {
    private String id;
    private String userId;       // 用户ID
    private String animeId;      // 动漫ID
    private int watchedTime;     // 已观看时长（秒）
    private Date lastWatched;    // 最后观看时间

    public PlaybackHistoryPOJO() {}

    public PlaybackHistoryPOJO(String id, String userId, String animeId, int watchedTime, Date lastWatched) {
        this.id = id;
        this.userId = userId;
        this.animeId = animeId;
        this.watchedTime = watchedTime;
        this.lastWatched = lastWatched;
    }

    // Getter 和 Setter 方法
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getAnimeId() {
        return animeId;
    }

    public void setAnimeId(String animeId) {
        this.animeId = animeId;
    }

    public int getWatchedTime() {
        return watchedTime;
    }

    public void setWatchedTime(int watchedTime) {
        this.watchedTime = watchedTime;
    }

    public Date getLastWatched() {
        return lastWatched;
    }

    public void setLastWatched(Date lastWatched) {
        this.lastWatched = lastWatched;
    }
}